﻿package mortal.game.view.combinedServer.item
{
    import mortal.game.resource.*;

    public class CombinedSerTabData extends Object
    {
        public var type:int;
        public var className:Class;
        public static var Gift:int = 1;
        public static var Recharge:int = 2;
        public static var RankRecharge:int = 3;
        public static var DoubleExp:int = 4;
        public static var Boss:int = 5;
        public static var Consum:int = 6;

        public function CombinedSerTabData(param1:int, param2:Class)
        {
            this.type = param1;
            this.className = param2;
            return;
        }// end function

        public function getImageHead() : String
        {
            switch(this.type)
            {
                case Gift:
                {
                    return ImagesConst.CombinedSerTab1;
                }
                case Recharge:
                {
                    return ImagesConst.CombinedSerTab2;
                }
                case RankRecharge:
                {
                    return ImagesConst.CombinedSerTab3;
                }
                case DoubleExp:
                {
                    return ImagesConst.CombinedSerTab4;
                }
                case Boss:
                {
                    return ImagesConst.CombinedSerTab5;
                }
                case Consum:
                {
                    return ImagesConst.CombinedSerTab6;
                }
                default:
                {
                    break;
                }
            }
            return ImagesConst.Active11TabLogin;
        }// end function

    }
}
